-- GENERATED SPELL FOR [Razorfen Handler] --


function spell0_4530(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4530', 658, 1)
end

function spell1_4530(pUnit, Event) --@Summon Tamed Battleboar,Self--
pUnit:FullCastSpellOnTarget(8274,pUnit)
pUnit:RegisterEvent('Sorts_4530', 574, 1)
end

function Sorts_4530(pUnit, Event)
local choix_sorts_4530 = math.random(0, 1)
if choix_sorts_4530 == 0 then
pUnit:RegisterEvent('spell0_4530', 1, 1)
end
if choix_sorts_4530 == 1 then
pUnit:RegisterEvent('spell1_4530', 1, 1)
end
end

function mob4530_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4530', math.random(1500, 3000), 1)
end

function mob4530_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4530_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4530_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4530, 1, 'mob4530_Action')
RegisterUnitEvent(4530, 2, 'mob4530_Leave')
RegisterUnitEvent(4530, 3, 'mob4530_Kill')
RegisterUnitEvent(4530, 4, 'mob4530_Die')
